<?php

Cache::config('default', array('engine' => 'File'));

Configure::write('Dispatcher.filters', array(
	'AssetDispatcher',
	'CacheDispatcher'
));

/**
 * Configures default file logging options
 */
App::uses('CakeLog', 'Log');
CakeLog::config('debug', array(
	'engine' => 'FileLog',
	'types' => array('notice', 'info', 'debug'),
	'file' => 'debug',
));
CakeLog::config('error', array(
	'engine' => 'FileLog',
	'types' => array('warning', 'error', 'critical', 'alert', 'emergency'),
	'file' => 'error',
));

define ('GRANTED', '1', true);
define ('DENY', '0', true);

define ('SUCCESS', '1', true);
define ('SAVE_ERROR' , '-1', true);
define ('INSUFFICIENT_PARAMETERS', -2, true);
define ('NAME_ALREADY_TAKEN', -3, true);
define ('NON_EXISTANT_NAME', -4, true);

function current_date () {
   return date('m/d/y');
}

function current_time () {
   return date('h:i:s');
}
